import {request} from './index';

export const saveUserGroup = (userGroup,resove,reject) => {
    request.post({
        url: '/usergroup',
        data: userGroup,
        success: resove,
        error: reject
    })
}

export const findUserGroup = (name,resove,reject) => {
    request.get({
        url: '/usergroup/'+name,
        success: resove,
        error: reject
    })
}

export const delUserGroup = (id,resove,reject) => {
    request.delete({
        url: '/usergroup/'+id,
        success: resove,
        error: reject
    })
}